<!DOCTYPE html>
<html data-ng-app="mainApp">
<head>
  <title>流水线demo页面</title>
  <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
  <!-- Bootstrap -->
  <!--<link href="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">-->
  <link href="../vendors/bootstrap/dist/css/bootstrap.css" rel="stylesheet">
  <link rel="stylesheet" type="text/css" href="../css/bootstrap-table.css">
  <link rel="stylesheet" type="text/css" href="../css/bootstrap-editable.css">
  <!-- Font Awesome -->
  <link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  <!-- NProgress -->
  <link href="../vendors/nprogress/nprogress.css" rel="stylesheet">
  <!-- Custom Theme Style -->
  <link href="../build/css/custom.min.css" rel="stylesheet">
  <!--项目启动css文件-->
  <link href="../css/projectstart.css" rel="stylesheet">
  <link href="../vendors/iCheck/skins/flat/green.css" rel="stylesheet">
  <link href="../css/app.118eea3d.min.css" rel="stylesheet">
  <link href="../css/vendor.118eea3d.min.css" rel="stylesheet">
  <link href="../css/cicd.css" rel="stylesheet">

  <!-- js-->
  <script src="../vendors/jquery/dist/jquery.min.js"></script>
  <!--<script src="http://10.139.7.230:8080/rap.plugin.js?projectId=5"></script>-->
  <script src="../vendors/angular/angular.min.js"></script>
  <script src="../../app.js" charset="UTF-8"></script>

  <script src="../datatable/bootstraptpls.js" charset="UTF-8"></script>
  <script src="../services/online_testService.js" charset="UTF-8"></script>
  <script src="../services/develop_processService.js" charset="UTF-8"></script>
  <script src="../controllers/projectstart_controller.js" charset="UTF-8"></script>
  <script src="../services/projectstart_Service.js" charset="UTF-8"></script>
  <script src="../services/online_deliveryService.js" charset="UTF-8"></script>
  <script src="../services/acceptanceService.js" charset="UTF-8"></script>
  <script src="../controllers/project_selectcontroller.js" charset="UTF-8"></script>
  <script src="../controllers/configManage_controller.js" charset="UTF-8"></script>
  <script src="../filter/filter.js" charset="UTF-8"></script>

  <script src="../vendors/bootstrap/dist/js/bootstrap.min.js"></script>
  <script type="text/javascript" src="../vendors/bootstrap/dist/js/bootstrap-table.js"></script>
  <script type="text/javascript" src="../vendors/bootstrap/dist/js/bootstrap-table-zh-CN.min.js"></script>
  <script type="text/javascript" src="../vendors/bootstrap/dist/js/bootstrap-table-editable.js"></script>
  <script type="text/javascript" src="../vendors/bootstrap/dist/js/bootstrap-editable.js"></script>
  <script src="../vendors/fastclick/lib/fastclick.js"></script>
  <script src="../vendors/nprogress/nprogress.js"></script>
  <script src="../vendors/jQuery-Smart-Wizard/js/jquery.smartWizard.js"></script>
  <script src="../vendors/raphael/raphael.min.js"></script>
  <script src="../vendors/morris.js/morris.min.js"></script>
  <script src="../vendors/iCheck/icheck.min.js"></script>
  <script src="../build/js/custom.min.js"></script>
  <script src="../datatable/h5Charts.js" charset="UTF-8"></script>
  <script src="../datatable/H5Draw.js" charset="UTF-8"></script>
  <link href="common-views.less" rel="stylesheet">

  <style>
    #donetestcases {
      border: solid 1px #E9E9E9;
    }

    #addbugs {
      border: solid 1px #E9E9E9;
    }

    #validbugs {
      border: solid 1px #E9E9E9;
    }

    #requirementdone {
      border: solid 1px #E9E9E9;
    }

    #codenumsubmit {
      border: solid 1px #E9E9E9;
    }

    #costtime {
      border: solid 1px #E9E9E9;
    }

    .confirmModal .modal-content {
      width: 450px;
      margin-top: 40%;
    }

  </style>

</head>
<body data-ng-controller="ConfigManageController" class="rb-console smart-style-2 ng-scope config-manage">
<rb-layout class="ng-isolate-scope" data-ng-init="load0()">
  <rb-layout-page-container container-name="pipeline.config.create" class="ng-isolate-scope">
    <div class="panel-split-container">
      <div class="page-scroll-container">
        <div class="rb-page-component ng-scope" id="rb-page-component-container" ui-view="">
          <rb-pipeline-config-create config-copy="::$resolve.configCopy" class="ng-scope ng-isolate-scope">
            <div class="rb-form-panel" rb-loading-mask="vm.submitting" style="position: relative;">
              <div class="rb-form-container">
                <header>
                  <div class="pipeline-create-title" style="width:90%;text-align:center;">创建项目管理流水线</div>
                  <div flex="" class="placeholder flex"></div>
                  <div>
                    <div class="control-buttons">
                      <button class="ui button rb-btn-default ng-binding" ng-click="goBack()">
                        取消
                      </button>
                      <button class="ui button rb-btn-primary ng-binding" ng-show="!vm.isUpdate"
                              ng-disabled="!vm.isConfig" ng-click="createPipeLine()">
                        创建
                      </button>
                      <button class="ui button rb-btn-primary ng-binding" ng-show="vm.isUpdate"
                              ng-disabled="!vm.isConfig" ng-click="updatePipeLine()">
                        修改
                      </button>
                    </div>
                  </div>
                </header>

                <div class="divider"></div>


                <!-- ngIf: vm.config -->
                <rb-pipeline-config-workflow ng-show="true" config="vm.config"
                                             mode="vm.configCopy ? 'copyCreate' : 'create'"
                                             class="ng-scope ng-isolate-scope">
                  <div class="pipeline-panels-container">
                    <rb-pipeline-workflow style="background-color: #f8f8f8" workflow="vm.workflow"
                                          class="ng-isolate-scope">
                      <div class="pipeline-workflow-container" style="padding: 10px;">

                        <!-- ngRepeat: taskItem in vm.workflow.tasks track by taskItem.id -->
                        <div class="pipeline-step-container ng-scope"
                             ng-repeat="taskItem in vm.workflow.tasks track by taskItem.itemId">
                          <rb-pipeline-workflow-item item="taskItem" workflow="vm.workflow" class="ng-isolate-scope">
                            <div class="workflow-item-container active"
                                 ng-class="{ 'selected': taskItem.selected, 'error': false, 'running': true }"
                                 ng-click="" role="button" tabindex="0">
                              <div class="workflow-item-header" title="task-1">
                                <div class="order-num ng-binding" aria-hidden="false">
                                  {{$index+1}}
                                </div>
                                <div class="header-title ng-binding">
                                  task-{{$index+1}}
                                </div>
                                <!-- ngIf: vm.item.isTask() && vm.item.touched && !vm.workflow.readonly -->
                                <div class="remove-icon fa fa-trash ng-scope" ng-click="pipeLineRemove($index)"
                                     ng-if="taskItem.isClick" role="button" tabindex="0">
                                </div>

                              </div>
                              <div rb-loading-mask="vm.item.loading" class="workflow-item-body">
                                <!-- ngIf: !vm.item.touched -->
                                <div class="fa fa-plus ng-scope" ng-if="!taskItem.isClick"
                                     ng-click="configTask(taskItem)">
                                </div>
                                <!-- end ngIf: !vm.item.touched -->
                                <div class="workflow-item-message-container ng-scope" ng-show="taskItem.isClick"
                                     aria-hidden="false" ng-click="configShow(taskItem)">
                                  <select name="" style="height:26px;width:90%;border-radius:4px;board:none;border:0;"
                                          ng-model="selectedTS"
                                          ng-options="ts.name for ts in taskStyle"
                                          ng-change="TSChoose(taskItem,selectedTS)" ng-show="taskItem.isSelectShow">
                                    <option value="">请选择一个任务类型</option>
                                  </select>
                                  <div ng-show="!taskItem.isSelectShow">{{taskItem.type}}</div>
                                </div>
                                <!-- ngRepeat: field in vm.item.fields | orderBy: 'order' -->
                                <div class="rb-loading-mask ng-scope ng-hide" ng-show="false" aria-hidden="true">
                                  <div class="ui loader medium active">
                                  </div>
                                </div>
                              </div>
                            </div>
                          </rb-pipeline-workflow-item>

                          <rb-pipeline-workflow-arrow ng-hide="$last && !vm.workflow.onEnd"
                                                      class="arrow-indicator ng-isolate-scope"
                                                      type="taskItem.arrowType()" ng-click="taskItem.onArrowClick()"
                                                      state="taskItem.state" role="button" tabindex="0"
                                                      aria-hidden="false">
                            <div class="arrow-container-outer" uib-tooltip="">
                              <div type="" class="arrow-container">
                                <svg class="arrow-svg" width="28px" height="21px" version="1.1"
                                     xmlns="http://www.w3.org/2000/svg">
                                  <g>
                                    <g transform="translate(-257.000000, -270.000000)" class="arrow-filler"
                                       ng-class="{'active': true}">
                                      <g transform="translate(0.000000, -89.000000)">
                                        <g transform="translate(153.000000, 141.000000)">
                                          <g>
                                            <g transform="translate(30.000000, 77.000000)">
                                              <g>
                                                <g transform="translate(74.000000, 141.000000)">
                                                  <g>
                                                    <rect x="7" y="0" width="14" height="10"></rect>
                                                    <polygon points="0 9 28 9 14 21"></polygon>
                                                  </g>
                                                </g>
                                              </g>
                                            </g>
                                          </g>
                                        </g>
                                      </g>
                                    </g>
                                  </g>
                                </svg>
                                <div class="fa fa-plus-circle plus-sign"></div>
                                <div class="fa fa-plus plus-sign-large"></div>
                              </div>
                            </div>
                          </rb-pipeline-workflow-arrow>
                        </div>
                        <!-- end ngRepeat: taskItem in vm.workflow.tasks track by taskItem.id -->


                        <!-- ngIf: vm.workflow.onEnd -->
                        <div ng-show="vm.workflow.onEnd" class="pipeline-step-container ng-scope">
                          <rb-pipeline-workflow-item item="vm.workflow.onEnd" workflow="vm.workflow"
                                                     class="ng-isolate-scope">
                            <div class="workflow-item-container inactive"
                                 ng-class="{ selected: vm.item.selected, disabled: vm.item.disabled, running: vm.item.running }"
                                 ng-click="vm.item.onClick()" role="button" tabindex="0">
                              <div class="workflow-item-header" title="完成任务">
                                <div ng-show="vm.item.isTask() &amp;&amp; vm.item.order"
                                     class="order-num ng-binding ng-hide" aria-hidden="true">
                                  1
                                </div>
                                <div class="header-title ng-binding">
                                  完成任务
                                </div>
                                <!-- ngIf: vm.item.isTask() && vm.item.touched && !vm.workflow.readonly -->
                              </div>
                              <div rb-loading-mask="vm.item.loading" class="workflow-item-body">
                                <!-- ngIf: !vm.item.touched -->
                                <div class="fa fa-plus ng-scope" ng-if="!vm.item.touched">
                                </div>
                                <!-- end ngIf: !vm.item.touched -->
                                <div class="workflow-item-message-container ng-binding ng-hide"
                                     ng-show="vm.item.message &amp;&amp; !vm.item.loading &amp;&amp; vm.item.touched"
                                     aria-hidden="true">

                                </div>
                                <!-- ngRepeat: field in vm.item.fields | orderBy: 'order' -->
                                <div type="pipeline_task_type" class="workflow-item-field-row  ng-hide"
                                     ng-repeat="field in vm.item.fields | orderBy: 'order'"
                                     ng-show="vm.item.touched &amp;&amp; !vm.item.message &amp;&amp; field.label"
                                     aria-hidden="true">
																	<span class="fa fa-bookmark field-logo" uib-tooltip="任务类型"
                                        tooltip-append-to-body="true">
																	</span>
                                  <div class="field-label ng-binding" title="通知">通知</div>
                                </div>
                                <!-- end ngRepeat: field in vm.item.fields | orderBy: 'order' -->
                                <div type="notification" class="workflow-item-field-row  ng-hide"
                                     ng-repeat="field in vm.item.fields | orderBy: 'order'"
                                     ng-show="vm.item.touched &amp;&amp; !vm.item.message &amp;&amp; field.label"
                                     aria-hidden="true">
																	<span class="fa fa-bullhorn field-logo" uib-tooltip="通知"
                                        tooltip-append-to-body="true">
																	</span>
                                  <div class="field-label ng-binding" title=""></div>
                                </div>
                                <!-- end ngRepeat: field in vm.item.fields | orderBy: 'order' -->
                                <div type="region" class="workflow-item-field-row  ng-hide"
                                     ng-repeat="field in vm.item.fields | orderBy: 'order'"
                                     ng-show="vm.item.touched &amp;&amp; !vm.item.message &amp;&amp; field.label"
                                     aria-hidden="true">
																	<span class="fa fa-server field-logo" uib-tooltip="集群" tooltip-append-to-body="true">
																	</span>
                                  <div class="field-label ng-binding" title=""></div>
                                </div>
                                <!-- end ngRepeat: field in vm.item.fields | orderBy: 'order' -->
                                <div type="timeout" class="workflow-item-field-row  ng-hide"
                                     ng-repeat="field in vm.item.fields | orderBy: 'order'"
                                     ng-show="vm.item.touched &amp;&amp; !vm.item.message &amp;&amp; field.label"
                                     aria-hidden="true">
																	<span class="fa fa-clock-o field-logo" uib-tooltip="超时" tooltip-append-to-body="true">
																	</span>
                                  <div class="field-label ng-binding" title=""></div>
                                </div>
                                <!-- end ngRepeat: field in vm.item.fields | orderBy: 'order' -->
                                <div class="rb-loading-mask ng-scope ng-hide" ng-show="vm.item.loading"
                                     aria-hidden="true">
                                  <div class="ui loader medium active"></div>
                                </div>
                              </div>
                            </div>
                          </rb-pipeline-workflow-item>
                        </div>
                        <!-- end ngIf: vm.workflow.onEnd -->

                      </div>
                    </rb-pipeline-workflow>


                    <!--右边的活动区域-->
                    <div class="pipeline-config-forms-container" style="border:0px solid #999;width: 800px">
                      <!--项目启动部分-->
                      <rb-pipeline-config-form style="height: 100%;background-color: #fff" item="item" mode="vm.mode"
                                               form="vm.forms[item.id]"
                                               workflow="vm.workflow" ng-show="type === '研发启动'"
                                               class="ng-scope ng-isolate-scope" aria-hidden="false">
                        <div class="rb-header-alt ng-binding">
                          {{taskStyle[0].name}}
                        </div>
                        <div
                          class="rb-form ng-pristine ng-valid ng-valid-required ng-valid-pattern ng-valid-min ng-valid-max">
                          <div style="height:30px;width:95%;border:0px solid #FFFFFF;margin-bottom: 8px">
                            <div
                              style="float:left;height:30px;width:9%;border:0px solid #999;font-weight:900;line-height:25px;">
                              产品名称
                            </div>
                            <div style="float:left;height:30px;width:80%;border:0px solid #999;">
                              <input type="text" name="newProjectName" ng-model="newProductName" placeholder="产品名称"
                                     style="height:26px;border-radius:4px;" required/>
                            </div>
                          </div>
                          <div style="height:60px;width:95%;border:0px solid #FFFFFF;margin-bottom: 8px">
                            <div
                              style="float:left;height:60px;width:9%;border:0px solid #999;font-weight:900;line-height:50px;">
                              产品说明
                            </div>
                            <div style="float:left;height:60px;width:80%;border:0px solid #999;line-height:10px;">
                              <textarea ng-model="newProductDes"
                                        style="height:55px;width:80%;resize:none;border-radius:4px;"
                                        placeholder="产品说明"></textarea>
                            </div>
                          </div>

                          <div style="height:120px;width:95%;border:0px solid #FFFFFF;">
                            <div style="float:left;height:118px;width:100%;border:0px solid #999;">
                              <div style="float:left;height:28px;width:100%;border:0px solid #999;margin-bottom: 8px">
                                <div
                                  style="float:left;height:28px;width:9%;border:none;text-align:left;line-height:28px;font-weight:900;">
                                  开发人员
                                </div>
                                <div
                                  style="float:left;height:28px;width:10%;border:0px solid #999;text-align:center;line-height:28px;">
                                  <select name="" style="height:26px;width:100%;border-radius:4px;"
                                          ng-model="selectedCoder"
                                          ng-options="coder.name for coder in allCoders" ng-change="coderChoose()">
                                    <option value="">--请选择--</option>
                                  </select>
                                </div>
                                <div style="float:left;height:28px;width:1%;border:none;"></div>
                                <div
                                  style="float:left;height:28px;width:auto;border:none;text-align:left;line-height:28px;"
                                  ng-repeat="addedCoder in addedCoders">
                                  <button type="button" class="close" style="line-height:28px;"
                                          ng-click="delCoders($index)">
                                    &times;
                                  </button>
                                  {{addedCoder.name}}
                                </div>
                              </div>
                              <div style="float:left;height:28px;width:100%;border:0px solid #999;margin-bottom: 8px">
                                <div
                                  style="float:left;height:28px;width:9%;border:none;text-align:left;line-height:28px;font-weight:900;">
                                  测试人员
                                </div>
                                <div
                                  style="float:left;height:28px;width:10%;border:0px solid #999;text-align:center;line-height:28px;">
                                  <select name="" style="height:26px;width:100%;border-radius:4px;"
                                          ng-model="selectedTester"
                                          ng-options="tester.name for tester in allTesters" ng-change="testerChoose()">
                                    <option value="">--请选择--</option>
                                  </select>
                                </div>
                                <div style="float:left;height:28px;width:1%;border:none;"></div>
                                <div
                                  style="float:left;height:28px;width:auto;border:0px solid #999;text-align:left;line-height:28px;"
                                  ng-repeat="addedTester in addedTesters">
                                  <button type="button" class="close" style="line-height:28px;"
                                          ng-click="delTesters($index)">
                                    &times;
                                  </button>
                                  {{addedTester.name}}
                                </div>
                              </div>
                            </div>
                          </div>
                          <div style="height:10px;width:95%;border:0px solid #999;"></div>
                          <div style="text-align:right;" ng-show="isNew">
                            <a>
                              <button type="submit" ng-click="saveProductInfo()"
                                      style="background:#00a3e2;color:#FFF;border-radius:4px;border:none;width:70px;height:35px;">
                                保存
                              </button>
                            </a>
                          </div>
                          <div style="text-align:right;" ng-show="!isNew">
                            <a>
                              <button type="submit" ng-click="saveProductInfo()"
                                      style="background:#00a3e2;color:#FFF;border-radius:4px;border:none;width:70px;height:35px;">
                                更新
                              </button>
                            </a>
                          </div>

                        </div>
                      </rb-pipeline-config-form>

                      <!--敏捷看板部分-->
                      <rb-pipeline-config-form style="background-color: #fff" item="item" mode="vm.mode"
                                               form="vm.forms[item.id]"
                                               workflow="vm.workflow"
                                               ng-show="type === '需求管理'" class="ng-scope ng-isolate-scope"
                                               aria-hidden="false">
                        <div class="rb-header-alt ng-binding">
                          {{taskStyle[1].name}}
                        </div>
                        <div
                          class="rb-form ng-pristine ng-valid ng-valid-required ng-valid-pattern ng-valid-min ng-valid-max"
                          ng-show="jiraShowType == null || jiraShowType == 'save'">
                          <div style="height:30px;width:95%;border:0px solid #FFFFFF;">
                            <div
                              style="float:left;height:30px;width:9%;border:0px solid #999;font-weight:900;line-height:25px;">
                              jira键值
                            </div>
                            <div style="float:left;height:30px;width:80%;border:0px solid #999;">
                              <!--<input type="text" name="newProjectName" ng-model="newProjectName" style="height:26px;border-radius:4px;" required/>-->
                              <select name="" style="height:26px;width:100%;border-radius:4px;" ng-model="selectedJira"
                                      ng-options="jira.code for jira in allJira" ng-change="jiraChoose()">
                                <option value="">--请选择--</option>
                              </select>
                            </div>
                          </div>
                          <div style="text-align:right;">
                            <a>
                              <button type="submit" ng-click="saveProductJiraUrl()"
                                      style="background:#00a3e2;color:#FFF;border-radius:4px;border:none;width:70px;height:35px;">
                                保存
                              </button>
                            </a>
                          </div>
                        </div>
                        <div ng-show="jiraShowType == 'detail'">
                          <div class="h-50 w-100P mt-10" style="text-align: right">
                            <div style="display: inline-block">
                              <button
                                style="background:#00a3e2;color:#FFF;border-radius:4px;border:none;width:70px;height:35px;"
                                ng-click="changeJiraType('report')">报表展示
                              </button>
                              <button
                                style="background:#00a3e2;color:#FFF;border-radius:4px;border:none;width:70px;height:35px;"
                                ng-click="changeJiraType('save')">编辑
                              </button>
                            </div>
                          </div>
                          <ng-form name="form"
                                   class="rb-form ng-pristine ng-valid ng-valid-required ng-valid-pattern ng-valid-min ng-valid-max">
                            <div class="jira-container">
                              <div class="jira-container-header">
                                <div class="col-md-4 jira-container-header-item">待办 {{jiraTasks.tasks.open.length + jiraTasks.other.open.length}}</div>
                                <div class="col-md-4 jira-container-header-item">处理中 {{jiraTasks.tasks.doing.length + jiraTasks.other.doing.length}}</div>
                                <div class="col-md-4 jira-container-header-item">完成 {{jiraTasks.tasks.close.length + jiraTasks.other.close.length}}</div>
                              </div>
                              <div class="jira-container-content">
                                <div class="col-md-12 jira-container-content-header">
                                  <span>紧急</span>
                                  <span>{{jiraTasks.tasks.open.length + jiraTasks.tasks.doing.length + jiraTasks.tasks.close.length}}任务</span>
                                </div>
                                <div class="col-md-4">
                                  <div class="jira-container-content-card" ng-repeat="item in jiraTasks.tasks.open">
                                    <div class="col-md-8">
                                      <div class="marginBottom10">
                                        <span class="marginRight10"><img src="../img/config_manage/{{item.type}}.png"></span>
                                        <a>{{item.number}}</a>
                                      </div>
                                      <div>
                                        <span class="marginRight10"><img src="../img/config_manage/{{item.level}}.png"></span>
                                        <span>{{item.summary}}</span>
                                      </div>
                                    </div>
                                    <div class="col-md-4"><img src="../img/config_manage/{{item.userName}}.png"></div>
                                  </div>
                                </div>
                                <div class="col-md-4">
                                  <div class="jira-container-content-card" ng-repeat="item in jiraTasks.tasks.doing">
                                    <div class="col-md-8">
                                      <div class="marginBottom10">
                                        <span class="marginRight10"><img src="../img/config_manage/{{item.type}}.png"></span>
                                        <a>{{item.number}}</a>
                                      </div>
                                      <div>
                                        <span class="marginRight10"><img src="../img/config_manage/{{item.level}}.png"></span>
                                        <span>{{item.summary}}</span>
                                      </div>
                                    </div>
                                    <div class="col-md-4"><img src="../img/config_manage/{{item.userName}}.png"></div>
                                  </div>
                                </div>
                                <div class="col-md-4">
                                  <div class="jira-container-content-card" ng-repeat="item in jiraTasks.tasks.close">
                                    <div class="col-md-8">
                                      <div class="marginBottom10">
                                        <span class="marginRight10"><img src="../img/config_manage/{{item.type}}.png"></span>
                                        <a>{{item.number}}</a>
                                      </div>
                                      <div>
                                        <span class="marginRight10"><img src="../img/config_manage/{{item.level}}.png"></span>
                                        <span>{{item.summary}}</span>
                                      </div>
                                    </div>
                                    <div class="col-md-4"><img src="../img/config_manage/{{item.userName}}.png"></div>
                                  </div>
                                </div>
                              </div>

                              <div class="jira-container-content">
                                <div class="col-md-12 jira-container-content-header">
                                  <span>其他</span>
                                  <span>{{jiraTasks.other.open.length + jiraTasks.other.doing.length + jiraTasks.other.close.length}}任务</span>
                                </div>
                                <div class="col-md-4">
                                  <div class="jira-container-content-card" ng-repeat="item in jiraTasks.other.open">
                                    <div class="col-md-8">
                                      <div class="marginBottom10">
                                        <span class="marginRight10"><img src="../img/config_manage/{{item.type}}.png"></span>
                                        <a>{{item.number}}</a>
                                      </div>
                                      <div>
                                        <span class="marginRight10"><img src="../img/config_manage/{{item.level}}.png"></span>
                                        <span>{{item.summary}}</span>
                                      </div>
                                    </div>
                                    <div class="col-md-4"><img src="../img/config_manage/{{item.userName}}.png"></div>
                                  </div>
                                </div>
                                <div class="col-md-4">
                                  <div class="jira-container-content-card" ng-repeat="item in jiraTasks.other.doing">
                                    <div class="col-md-8">
                                      <div class="marginBottom10">
                                        <span class="marginRight10"><img src="../img/config_manage/{{item.type}}.png"></span>
                                        <a>{{item.number}}</a>
                                      </div>
                                      <div>
                                        <span class="marginRight10"><img src="../img/config_manage/{{item.level}}.png"></span>
                                        <span>{{item.summary}}</span>
                                      </div>
                                    </div>
                                    <div class="col-md-4"><img src="../img/config_manage/{{item.userName}}.png"></div>
                                  </div>
                                </div>
                                <div class="col-md-4">
                                  <div class="jira-container-content-card" ng-repeat="item in jiraTasks.other.close">
                                    <div class="col-md-8">
                                      <div class="marginBottom10">
                                        <span class="marginRight10"><img src="../img/config_manage/{{item.type}}.png"></span>
                                        <a>{{item.number}}</a>
                                      </div>
                                      <div>
                                        <span class="marginRight10"><img src="../img/config_manage/{{item.level}}.png"></span>
                                        <span>{{item.summary}}</span>
                                      </div>
                                    </div>
                                    <div class="col-md-4"><img src="../img/config_manage/{{item.userName}}.png"></div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </ng-form>
                        </div>
                        <div ng-show="jiraShowType == 'report'">
                          <div class="h-50 w-100p mt-10">
                            <button class="second-button-l f-l w-100" ng-click="changeJiraType('detail')">Jira明细
                            </button>
                            <button class="second-button-l f-l w-80 ml-12" ng-click="changeJiraType('save')">编辑</button>
                          </div>
                          <div class="w-1000">
                            <div class="w-1000 h-40">
                              <div class="calender-div">
                                开始日期
                              </div>
                              <div class="form-group col-sm-3 calender-controller">
                                <div class="input-group m-d">
                                  <input type="text" class="form-control" name="loanDate" datepicker-popup="{{format}}"
                                         ng-model="jiraBeginDate" is-open="beginDate" datepicker-options="dateOptions"
                                         close-text="Close" readOnly="true"/>
                                  <span class="input-group-btn">
                                                            <button type="button" class="btn btn-default"
                                                                    ng-click="openBeginDate($event,1)">
                                                                <i class="glyphicon glyphicon-calendar"></i>
                                                            </button>
							                            </span>
                                </div>
                              </div>
                              <div class="calender-div">
                                结束日期
                              </div>
                              <div class="form-group col-sm-3 calender-controller">
                                <div class="input-group m-d">
                                  <input type="text" class="form-control" name="loanDate1" datepicker-popup="{{format}}"
                                         ng-model="jiraEndDate" is-open="endDate"
                                         datepicker-options="dateOptions" close-text="Close" readOnly="true"/>
                                  <span class="input-group-btn">
                                                            <button type="button" class="btn btn-default"
                                                                    ng-click="openEndDate($event,1)">
                                                                <i class="glyphicon glyphicon-calendar"></i>
                                                            </button>
							                            </span>
                                </div>
                              </div>
                              <div class="calender-div f-r">
                                <button class="second-button-l">搜索</button>
                              </div>
                            </div>
                          </div>
                          <div class="w-100P height-min-900">
                            <div style="float:left;width:100%;height:30px;border:none;">
                              <div style="float:left;height:40px;width:100%;border:0px solid #999;">
                                <div style="float:left;height:40px;width:2%;border:0px solid #999;"></div>
                                <div
                                  style="float:left;height:40px;width:98%;border:0px solid #999;font-size:20px;line-height:40px">
                                  需求解决数
                                </div>
                              </div>
                              <canvas id="requirementdone" width="1000" height="320">
                              </canvas>
                              <div style="float:left;height:40px;width:100%;border:0px solid #999;">
                                <div style="float:left;height:40px;width:2%;border:0px solid #999;"></div>
                                <div
                                  style="float:left;height:40px;width:98%;border:0px solid #999;font-size:20px;line-height:40px">
                                  需求处理时间(天)
                                </div>
                              </div>
                              <canvas id="costtime" width="1000" height="320">
                              </canvas>
                            </div>
                          </div>
                        </div>
                      </rb-pipeline-config-form>
                      <!--研发过程部分-->
                      <rb-pipeline-config-form style="background-color: #fff" item="item" mode="vm.mode"
                                               form="vm.forms[item.id]"
                                               workflow="vm.workflow" ng-show="type === '研发过程'"
                                               class="ng-scope ng-isolate-scope" aria-hidden="false">
                        <div class="rb-header-alt ng-binding">
                          {{taskStyle[2].name}}
                          <!--<a href="#" class="rb-btn-link ng-binding" ng-click="vm.helpLinkClicked()">
                              了解更多
                              <i class="fa fa-angle-double-right"></i>
                          </a>-->
                        </div>
                        <div class="tab">
                          <ul class="nav nav-tabs">
                            <li class="active">
                              <a href="#tab1" data-toggle="tab">
                                开发仓库
                              </a>
                            </li>
                            <li>
                              <a href="#tab2" data-toggle="tab">
                                构建配置
                              </a>
                            </li>
                          </ul>
                        </div>
                        　
                        <div id="processContent" class="tab-content">
                          <div class="tab-pane fade in active" id="tab1">
                            <div
                              class="rb-form ng-pristine ng-valid ng-valid-required ng-valid-pattern ng-valid-min ng-valid-max"
                              ng-show="scmShowType == null || scmShowType == 'save'">
                              <div class="f-l" style="height:30px;width:20%;border:0px solid #FFFFFF;">
                                <div style="float:left;height:30px;width:80%;border:0px solid #999;">
                                  <!--<input type="text" name="newProjectName" ng-model="newProjectName" style="height:26px;border-radius:4px;" required/>-->
                                  <select name="" style="height:26px;width:100%;border-radius:4px;" ng-model="scmType"
                                          ng-options="type.value for type in allScmType" ng-change="changeScm()">
                                    <option value="">仓库类型选择</option>
                                  </select>
                                </div>
                              </div>
                              <div class="f-l" style="height:30px;width:40%;border:0px solid #FFFFFF;">
                                <div style="float:left;height:30px;width:80%;border:0px solid #999;">
                                  <!--<input type="text" name="newProjectName" ng-model="newProjectName" style="height:26px;border-radius:4px;" required/>-->
                                  <select name="" style="height:26px;width:100%;border-radius:4px;"
                                          ng-model="selectedScm"
                                          ng-options="scm.name for scm in allScmRepo">
                                    <option value="">--请选择--</option>
                                  </select>
                                </div>
                              </div>
                              <div style="text-align:right;">
                                <a>
                                  <button type="submit" ng-click="saveProductScmUrl()"
                                          style="background:#00a3e2;color:#FFF;border-radius:4px;border:none;width:70px;height:35px;">
                                    保存
                                  </button>
                                </a>
                              </div>
                            </div>
                            <div ng-show="scmShowType == 'detail'">
                              <div class="h-50 w-100P mt-10">

                                <div style="float: right">
                                    <button class="second-button-l f-r w-100" ng-click="changeScmType('report')">报表展示
                                    </button>
                                    <button class="second-button-l f-r w-80 mr-12" ng-click="changeScmType('save')">编辑
                                    </button>
                                  <!--<button
                                    style="background:#00a3e2;color:#FFF;border-radius:4px;border:none;width:70px;height:35px;">
                                    新的分支
                                  </button>
                                  <button
                                    style="background:#00a3e2;color:#FFF;border-radius:4px;border:none;width:70px;height:35px;">
                                    新的tag
                                  </button>-->
                                </div>
                                <div class="f-l h-30 w-150">
                                  <select name="" class="h-30 w-150 border-rds-4" ng-model="selectedScmBranch"
                                          ng-options="scm.name for scm in allScmBranch">
                                    <option value="">master</option>
                                  </select>
                                </div>
                              </div>
                              <ng-form name="form"
                                       class="rb-form ng-pristine ng-valid ng-valid-required ng-valid-pattern ng-valid-min ng-valid-max">
                                <div>
                                  <div class="w-100P h-40">
                                    File
                                  </div>
                                  <table class="table-mini table-hover">
                                    <thead>
                                    <tr class="text-l">
                                      <th class="col-md-5 text-l">Name</th>
                                      <th class="col-md-5 text-l">Last Commit</th>
                                      <th class="col-md-2 text-r">Last Update</th>
                                    </tr>
                                    </thead>
                                    <tbody class="border-b-1">
                                    <tr data-ng-repeat="file in files">
                                      <td class="col-md-5 text-l"> {{file.name}}</td>
                                      <td class="col-md-5 text-l"> {{file.lastComment}}</td>
                                      <td class="col-md-2 text-r"> {{file.lastUpdate}}</td>
                                    </tr>
                                    </tbody>
                                  </table>
                                </div>
                                <div class="manage-commits" style="margin-top: 20px">
                                  <div class="w-100P h-40">
                                    Commits
                                  </div>
                                  <table class="table-mini table-hover" ng-repeat="item in allCommints">
                                    <thead >
                                        <tr class="text-l">
                                          <th class="col-md-5 text-l">
                                            <span>{{item.time}}</span>
                                            <span>{{item.commits.length}} commits</span>
                                          </th>
                                        </tr>
                                    </thead>
                                    <tbody class="border-b-1" ng-repeat="commit in item.commits">
                                        <tr>
                                          <td class="col-md-5 text-l">
                                            <div class="col-md-2"><span>Image</span></div>
                                            <div class="col-md-4">
                                              <div>{{commit.comment}}</div>
                                              <div>{{commit.userName}} authored </div>
                                            </div>
                                          </td>
                                        </tr>
                                    </tbody>
                                  </table>
                                </div>
                                <div class="manage-tags col-md-12"
                                     style="margin-top: 20px;padding: 10px 0;border-bottom: #dddddd 1px solid">
                                  <div class="w-100P h-40">
                                    Tags
                                  </div>
                                  <div class="manage-tags-card" ng-repeat="tag in allTags">
                                    <div class="col-md-12" style="margin-bottom: 10px">
                                      <div class="col-md-2"><span><img src="../img/config_manage/tag%20-%20FontAwesome.png"></span></div>
                                      <div class="col-md-6"><span>{{tag.name}}</span></div>
                                    </div>
                                    <div class="col-md-12">
                                      <div class="col-md-8"><span>{{tag.id}} · {{tag.comment}}</span></div>
                                    </div>
                                  </div>
                                </div>
                              </ng-form>
                            </div>
                            <div ng-show="scmShowType == 'report'">
                              <div class="h-50 w-100p mt-10">
                                <button class="second-button-l f-l w-100" ng-click="changeScmType('detail')">代码详情
                                </button>
                                <button class="second-button-l f-l w-80 ml-12" ng-click="changeScmType('save')">编辑
                                </button>
                              </div>
                              <div class="w-1000">
                                <div class="w-1000 h-40">
                                  <div class="calender-div">
                                    开始日期
                                  </div>
                                  <div class="form-group col-sm-3 calender-controller">
                                    <div class="input-group m-d">
                                      <input type="text" class="form-control" name="loanDate"
                                             datepicker-popup="{{format}}" ng-model="scmBeginDate"
                                             is-open="beginDate" datepicker-options="dateOptions" close-text="Close"
                                             readOnly="true"/>
                                      <span class="input-group-btn">
                                                                    <button type="button" class="btn btn-default"
                                                                            ng-click="openBeginDate($event,1)">
                                                                        <i class="glyphicon glyphicon-calendar"></i>
                                                                    </button>
							                                        </span>
                                    </div>
                                  </div>
                                  <div class="calender-div">
                                    结束日期
                                  </div>
                                  <div class="form-group col-sm-3 calender-controller">
                                    <div class="input-group m-d">
                                      <input type="text" class="form-control" name="loanDate1"
                                             datepicker-popup="{{format}}" ng-model="scmEndDate"
                                             is-open="endDate" datepicker-options="dateOptions" close-text="Close"
                                             readOnly="true"/>
                                      <span class="input-group-btn">
                                                                    <button type="button" class="btn btn-default"
                                                                            ng-click="openEndDate($event,1)">
                                                                        <i class="glyphicon glyphicon-calendar"></i>
                                                                    </button>
							                                        </span>
                                    </div>
                                  </div>
                                  <div class="calender-div f-r">
                                    <button class="second-button-l">搜索</button>
                                  </div>
                                </div>
                              </div>
                              <div class="w-100P height-min-900">
                                <div style="float:left;width:100%;height:30px;border:none;">
                                  <div style="float:left;height:40px;width:100%;border:0px solid #999;">
                                    <div style="float:left;height:40px;width:2%;border:0px solid #999;"></div>
                                    <div
                                      style="float:left;height:40px;width:98%;border:0px solid #999;font-size:20px;line-height:40px">
                                      代码提交
                                    </div>
                                  </div>
                                  <canvas id="codenumsubmit" width="1000" height="320">
                                  </canvas>
                                </div>
                              </div>
                            </div>
                          </div>

                          <div class="tab-pane fade in" id="tab2">
                            <div
                              class="rb-form ng-pristine ng-valid ng-valid-required ng-valid-pattern ng-valid-min ng-valid-max"
                              ng-show="dailyJenkinsShowType == null || dailyJenkinsShowType == 'save'">
                              <div class="f-l" style="height:30px;width:20%;border:0px solid #FFFFFF;">
                                <div style="float:left;height:30px;width:80%;border:0px solid #999;">
                                  <!--<input type="text" name="newProjectName" ng-model="newProjectName" style="height:26px;border-radius:4px;" required/>-->
                                  <select name="" style="height:26px;width:100%;border-radius:4px;"
                                          ng-model="dailyJenkinsType"
                                          ng-options="type.value for type in allDailyJenkinsType"
                                          ng-change="changeDailyJenkins()">
                                    <option value="">jenkins容器</option>
                                  </select>
                                </div>
                              </div>
                              <div class="f-l" style="height:30px;width:40%;border:0px solid #FFFFFF;">
                                <div style="float:left;height:30px;width:80%;border:0px solid #999;">
                                  <!--<input type="text" name="newProjectName" ng-model="newProjectName" style="height:26px;border-radius:4px;" required/>-->
                                  <select name="" style="height:26px;width:100%;border-radius:4px;"
                                          ng-model="selectedJenkins"
                                          ng-options="jenkins.taskName for jenkins in allJenkinsRepo">
                                    <option value="">jenkins任务</option>
                                  </select>
                                </div>
                              </div>
                              <div style="text-align:right;">
                                <a>
                                  <button type="submit" ng-click="saveProductDailyJenkinsUrl()"
                                          style="background:#00a3e2;color:#FFF;border-radius:4px;border:none;width:70px;height:35px;">
                                    保存
                                  </button>
                                </a>
                              </div>
                            </div>
                            <div ng-show="dailyJenkinsShowType == 'detail'">
                              <div class="h-50 w-100P" style="text-align: right">
                                <!--<button class="second-button-l f-l w-100">新建任务</button>-->
                                <button
                                  style="background:#00a3e2;color:#FFF;border-radius:4px;border:none;width:70px;height:35px;"
                                  ng-click="changeDailyJenkinsType('save')">编辑
                                </button>
                              </div>
                              <ng-form name="form"
                                       class="rb-form ng-pristine ng-valid ng-valid-required ng-valid-pattern ng-valid-min ng-valid-max">
                                <div class="research-info">
                                  <table id="researchInfo"></table>
                                </div>
                              </ng-form>
                            </div>
                          </div>
                        </div>
                      </rb-pipeline-config-form>
                      <!--在线测试部分-->
                      <rb-pipeline-config-form style="background-color: #fff" item="item" mode="vm.mode"
                                               form="vm.forms[item.id]"
                                               workflow="vm.workflow" ng-show="type === '在线测试'"
                                               class="ng-scope ng-isolate-scope" aria-hidden="false">
                        <div class="rb-header-alt ng-binding">
                          {{taskStyle[3].name}}
                        </div>
                        <div
                                class="rb-form ng-pristine ng-valid ng-valid-required ng-valid-pattern ng-valid-min ng-valid-max"
                                ng-show="testShowType == null || testShowType == 'table'">
                            <div class="h-50 w-100p mt-10">
                                <button class="second-button-l f-l w-100" ng-click="changeTestType('report')">报表
                                </button>
                            </div>
                            <div class="manage-info">
                                <div id="toolbar">
                                    <button id="remove" class="btn icon icon-delete" disabled></button>
                                    <button id="add" class="ml-10 btn icon icon-add"></button>
                                    <button id="save" class="ml-10 btn icon icon-success"></button>
                                    <button id="refresh" class="ml-10 btn icon icon-refresh"></button>
                                </div>
                                <table id="testInfo"></table>
                            </div>
                        </div>
                          <div ng-show="testShowType == 'report'">
                              <div class="h-50 w-100p mt-10">
                                  <button class="second-button-l f-l w-200" ng-click="changeTestType('table')">测试用例实施表
                                  </button>
                              </div>
                              <div class="w-1000">
                                  <div class="w-1000 h-40">
                                      <div class="calender-div">
                                          开始日期
                                      </div>
                                      <div class="form-group col-sm-3 calender-controller">
                                          <div class="input-group m-d">
                                              <input type="text" class="form-control" name="loanDate" datepicker-popup="{{format}}"
                                                     ng-model="finance.loanDate" is-open="loanDate" datepicker-options="dateOptions"
                                                     close-text="Close" readOnly="true"/>
                                              <span class="input-group-btn">
                                                            <button type="button" class="btn btn-default"
                                                                    ng-click="openDatepicker($event,1)">
                                                                <i class="glyphicon glyphicon-calendar"></i>
                                                            </button>
							                            </span>
                                          </div>
                                      </div>
                                      <div class="calender-div">
                                          结束日期
                                      </div>
                                      <div class="form-group col-sm-3 calender-controller">
                                          <div class="input-group m-d">
                                              <input type="text" class="form-control" name="loanDate1" datepicker-popup="{{format}}"
                                                     ng-model="finance.loanDate1" is-open="loanDate1"
                                                     datepicker-options="dateOptions" close-text="Close" readOnly="true"/>
                                              <span class="input-group-btn">
                                                            <button type="button" class="btn btn-default"
                                                                    ng-click="openDatepicker1($event,1)">
                                                                <i class="glyphicon glyphicon-calendar"></i>
                                                            </button>
							                            </span>
                                          </div>
                                      </div>
                                      <div class="calender-div f-r">
                                          <button class="second-button-l">搜索</button>
                                      </div>
                                  </div>
                              </div>
                              <div class="w-100P height-min-900">
                                  <div style="float:left;width:100%;height:30px;border:none;">
                                      <div style="float:left;height:40px;width:100%;border:0px solid #999;">
                                          <div style="float:left;height:40px;width:2%;border:0px solid #999;"></div>
                                          <div
                                                  style="float:left;height:40px;width:98%;border:0px solid #999;font-size:20px;line-height:40px">
                                              发现bug数
                                          </div>
                                      </div>
                                      <canvas id="findBugs" width="1000" height="320">
                                      </canvas>
                                      <div style="float:left;height:40px;width:100%;border:0px solid #999;">
                                          <div style="float:left;height:40px;width:2%;border:0px solid #999;"></div>
                                          <div
                                                  style="float:left;height:40px;width:98%;border:0px solid #999;font-size:20px;line-height:40px">
                                              有效bug数
                                          </div>
                                      </div>
                                      <canvas id="validBugs" width="1000" height="320">
                                      </canvas>
                                  </div>
                              </div>
                          </div>
                      </rb-pipeline-config-form>

                      <!--配置审计部分-->
                      <rb-pipeline-config-form style="background-color: #fff" item="item" mode="vm.mode"
                                               form="vm.forms[item.id]"
                                               workflow="vm.workflow" ng-show="type === '配置审计'"
                                               class="ng-scope ng-isolate-scope" aria-hidden="false">

                        <div class="rb-header-alt ng-binding">
                          {{taskStyle[4].name}}
                        </div>
                        <div class="manage-info">
                          <table id="manageInfo"></table>
                        </div>
                      </rb-pipeline-config-form>
                      <!--上线交付部分-->
                      <rb-pipeline-config-form style="background-color: #fff" item="item" mode="vm.mode"
                                               form="vm.forms[item.id]"
                                               workflow="vm.workflow" ng-show="type === '上线交付'"
                                               class="ng-scope ng-isolate-scope" aria-hidden="false">
                        <div class="rb-header-alt ng-binding">
                          {{taskStyle[3].name}}
                          <a href="#" class="rb-btn-link ng-binding" ng-click="vm.helpLinkClicked()">
                            了解更多
                            <i class="fa fa-angle-double-right"></i>
                          </a>
                        </div>
                        <ng-form name="form"
                                 class="rb-form ng-pristine ng-valid ng-valid-required ng-valid-pattern ng-valid-min ng-valid-max">

                          <div style="width:100%;height:830px;border:none;">
                            <ul id="myTab" class="nav nav-tabs bar_tabs" role="tablist">
                              <li role="presentation" class="active"><a href="#tab_content111" id="home-tab111"
                                                                        role="tab" data-toggle="tab"
                                                                        aria-expanded="true">可选部署包</a>
                              </li>
                              <li role="presentation" class=""><a href="#tab_content222" role="tab" id="profile-tab222"
                                                                  data-toggle="tab" aria-expanded="false">历史记录</a>
                              </li>
                            </ul>
                            <div id="myTabContent" class="tab-content">
                              <div role="tabpanel" class="tab-pane fade active in" id="tab_content111"
                                   aria-labelledby="home-tab">
                                <div style="float:left;width:100%;height:800px;border:none;">
                                  <!--版本信息表格-->
                                  <div style="float:left;width:100%;height:30px;border:none;"></div>
                                  <div style="float:left;width:100%;height:560px;border:none;">
                                    <table style="float:left;;width:100%;height:auto;">
                                      <thead>
                                      <tr style="background-color:#00a3e2;height:50px;">
                                        <th style="text-align:center;width:15%;font-size:14px;">产品名称</th>
                                        <th style="text-align:center;width:85%;font-size:14px;">版本号</th>
                                      </tr>
                                      </thead>
                                      <tbody>
                                      <tr style="background-color:#F5FAFE;height:40px;"
                                          ng-repeat="pro in prosInProject track by $index">
                                        <td style="text-align:left;width:15%;font-size:14px;">{{pro.productName}}</td>
                                        <td style="width: 85%">
                                          <ul ng-if="pro.showList != null && pro.showList.length > 0"
                                              style="width: 100%">
                                            <li style="list-style-type:none;width: 25%"
                                                ng-repeat="show in pro.showList">
                                              <input type="radio" style="float:left;margin-top:9px" ng-value=true
                                                     name="radio-btn-{{$parent.$index}}" ng-model="show.state"
                                                     for="radio-btn-{{$parent.$index}}"/>
                                              <div style="float:left;line-height:30px;">&nbsp;{{show.version}}&nbsp;&nbsp;&nbsp;&nbsp;</div>
                                            </li>
                                          </ul>
                                        </td>
                                      </tr>
                                      </tbody>
                                    </table>
                                    <div style="float:left;width:100%;height:15px;border:none;"></div>
                                    <div style="float:left;width:100%;height:35px;border:none;">
                                      <div style="float:left;width:90px;height:35px;border:none;">
                                        <a href="#" ng-click="download()">
                                          <button type="button"
                                                  style="font-size:14px;;width:70px;height:35px;background:#00a3e2;color:#FFF;border-radius:4px;border:none;">
                                            下&nbsp;&nbsp;载
                                          </button>
                                        </a>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                              <div role="tabpanel" class="tab-pane fade" id="tab_content222"
                                   aria-labelledby="profile-tab">
                                <div style="float:left;width:100%;height:800px;border:none;">
                                  <!--历史下载记录信息表格-->
                                  <div style="float:left;width:100%;height:30px;border:none;"></div>
                                  <div style="float:left;width:100%;height:560px;border:none;">
                                    <table style="float:left;;width:100%;height:auto;">
                                      <thead>
                                      <tr style="background-color:#00a3e2;height:50px;">
                                        <th style="text-align:center;width:4%;font-size:14px;">序号</th>
                                        <th style="text-align:center;width:20%;font-size:14px;">下载时间</th>
                                        <th style="text-align:center;width:76%;font-size:14px;">产品版本号</th>
                                      </tr>
                                      </thead>
                                      <tbody>
                                      <tr style="background-color:#F5FAFE;height:40px;"
                                          ng-repeat="record in downloadHistoryRecords">
                                        <td style="text-align:center;width:4%;font-size:14px;">{{$index + 1}}</td>
                                        <td style="text-align:center;width:20%;font-size:14px;">
                                          {{record.downloadedTime}}
                                        </td>
                                        <td style="width:76%;font-size:14px;">
                                          <ul style="width:100%;" class="clearfix">
                                            <li style="list-style-type:none;width: 25%;margin-right: 20px;float:left;"
                                                ng-repeat="prosversion in record.proVersionInfoList">
                                              {{prosversion}}
                                            </li>
                                          </ul>
                                        </td>
                                      </tr>
                                      <tr ng-if="downloadHistoryRecords.length == 0">
                                        <td style="text-align:center;font-size:14px;">未找到相应数据</td>
                                      </tr>
                                      </tbody>
                                    </table>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>

                        </ng-form>
                      </rb-pipeline-config-form>

                      <!--验收环节部分-->
                      <rb-pipeline-config-form item="item" mode="vm.mode" form="vm.forms[item.id]"
                                               workflow="vm.workflow" ng-show="type === '验收环节'"
                                               class="ng-scope ng-isolate-scope" aria-hidden="false">
                        <div class="rb-header-alt ng-binding">
                          {{taskStyle[4].name}}
                          <a href="#" class="rb-btn-link ng-binding" ng-click="vm.helpLinkClicked()">
                            了解更多
                            <i class="fa fa-angle-double-right"></i>
                          </a>
                        </div>
                        <ng-form name="form"
                                 class="rb-form ng-pristine ng-valid ng-valid-required ng-valid-pattern ng-valid-min ng-valid-max">

                          <div style="width:100%;height:830px;border:none;">
                            <div style="float:left;width:100%;height:20px;border:none;"></div>
                            <div style="float:left;width:100%;height:800px;border:none;">
                              <table style="float:left;;width:100%;height:auto;">
                                <thead>
                                <tr style="background-color:#00a3e2;height:50px;border-bottom:1px solid #F2F2F2;">
                                  <th
                                    style="text-align:center;width:20%;font-size:14px;border-right:1px solid #FFFFFF;">
                                    文档名称
                                  </th>
                                  <th
                                    style="text-align:center;width:20%;font-size:14px;border-right:1px solid #FFFFFF;">
                                    版本号
                                  </th>
                                  <th
                                    style="text-align:center;width:20%;font-size:14px;border-right:1px solid #FFFFFF;">
                                    状态
                                  </th>
                                  <th
                                    style="text-align:center;width:20%;font-size:14px;border-right:1px solid #FFFFFF;">
                                    更新日期
                                  </th>
                                  <th
                                    style="text-align:center;width:20%;font-size:14px;border-right:1px solid #FFFFFF;">
                                    操作
                                  </th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr style="background-color:#FFFFFF;height:40px;" data-ng-repeat="item in list">
                                  <th style="text-align:center;font-size:12px;border-right:1px solid #FFFFFF;">
                                    {{item.type | AcceptanceType}}
                                  </th>
                                  <th style="text-align:center;font-size:12px;border-right:1px solid #FFFFFF;">
                                    {{item.version}}
                                  </th>
                                  <th style="text-align:center;border-right:1px solid #FFFFFF;height: 22px;width: 22px"
                                      ng-if="item.status == true">
                                    <img src="../images/icon_right.png"/>
                                  </th>
                                  <th style="text-align:center;border-right:1px solid #FFFFFF;height: 22px;width: 22px"
                                      ng-if="item.status == false">
                                    <img src="../images/icon_wrong.png"/>
                                  </th>
                                  <th style="text-align:center;font-size:12px;border-right:1px solid #FFFFFF;">
                                    {{item.lastUpdate}}
                                  </th>
                                  <th style="text-align:center;border-right:1px solid #FFFFFF;">
                                    <a ng-click="upload(item)"><img src="../images/icon_sc.png"
                                                                    style="width:22px;height:16px;"/></a>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <a ng-click="downloadDocument(item)"><img src="../images/icon_xz.png"
                                                                              style="width:22px;height:16px;"/></a>
                                  </th>
                                </tr>
                                </tbody>
                              </table>
                            </div>
                          </div>

                        </ng-form>
                      </rb-pipeline-config-form>

                    </div>

                  </div>
                </rb-pipeline-config-workflow>
                <!-- end ngIf: vm.config -->
                <div class="rb-loading-mask ng-scope ng-hide" ng-show="vm.submitting" aria-hidden="true">
                  <div class="ui loader large active"></div>
                </div>
              </div>
            </div>
          </rb-pipeline-config-create>
        </div>
      </div>
      <div class="page-side-panel-container">
        <div class="resize-handle">
          <div class="dot"></div>
          <div class="dot"></div>
          <div class="dot"></div>
        </div>
        <div class="page-side-panel-container-anchor"></div>
      </div>
    </div>
  </rb-layout-page-container>
</rb-layout>
<script type="application/javascript">

</script>
</body>

</html>


<!--添加版本测试页面的对话框dialog-->
<script type="text/ng-template" id="myModalContent.html">

  <div class="modal-header" style="text-align:center;background-color:#EEEEEE;">
    <h3>新增产品提测信息</h3>
  </div>
  <div class="modal-body" style="background-color:#EEEEEE;">
    <div class="container" style="width:80%;">
      <form class="form-horizontal">
        <div class="form-group">
          <lable class="control-label">产品名称:</lable>
          <select class="form-control" style="border-radius:4px;" ng-model="selectedProduct"
                  ng-options="pro.productName for pro in pros" ng-change="">
            <option value="">---请选择产品---</option>
          </select>
        </div>
        <div class="form-group">
          <lable class="control-label">提测版本:</lable>
          <input type="text" class="form-control" placeholder="请输入版本信息" style="border-radius:4px;"
                 ng-model="newTestStartRecord.versionNum"/>
        </div>
        <div class="form-group">
          <lable class="control-label">提测人:</lable>
          <select class="form-control" style="border-radius:4px;" ng-model="selectedTestStarter"
                  ng-options="oper.name for oper in opers" ng-change="">
            <option value="">---请选择提测人---</option>
          </select>
        </div>
        <div class="form-group">
          <lable class="control-label">提测时间:</lable>
          <div class="input-group date form_datatime">
            <input type="text" class="form-control" style="width:100%;" name="loanDate" datepicker-popup="{{format}}"
                   ng-model="newTestStartRecord.loanDate" is-open="loanDate" datepicker-options="dateOptions"
                   close-text="Close" readOnly="true"/>
            <span class="input-group-btn">
							<button type="button" class="btn btn-default" ng-click="openDatepicker($event,1)">
								<i class="glyphicon glyphicon-calendar"></i>
							</button>
						</span>
          </div>
        </div>
        <div class="form-group">
          <lable class="control-label">提测分支:</lable>
          <input type="text" class="form-control" placeholder="请输入分支名称" style="border-radius:4px;"
                 ng-model="newTestStartRecord.branchName"/>
        </div>
        <div class="form-group">
          <lable class="control-label">测试负责人:</lable>
          <!--<input type="text" class="form-control" placeholder="请输入测试负责人姓名" style="border-radius:4px;" ng-model="newTestStartRecord.testerName" />-->
          <select class="form-control" style="border-radius:4px;" ng-model="selectedTester"
                  ng-options="tester.name for tester in operators" ng-change="">
            <option value="">---请选择测试负责人---</option>
          </select>
        </div>
        <div class="form-group">
          <lable class="control-label">报告时间:</lable>
          <div class="input-group date form_datatime">
            <input type="text" class="form-control" style="width:100%;" name="loanDate1" datepicker-popup="{{format}}"
                   ng-model="newTestStartRecord.loanDate1" is-open="loanDate1" datepicker-options="dateOptions"
                   close-text="Close" readOnly="true"/>
            <span class="input-group-btn">
							<button type="button" class="btn btn-default" ng-click="openDatepicker1($event,1)">
								<i class="glyphicon glyphicon-calendar"></i>
							</button>
						</span>
          </div>
        </div>
        <div class="form-group">
          <lable class="control-label">冒烟测试通过率:</lable>
          <input type="text" class="form-control" placeholder="10%" style="border-radius:4px;"
                 ng-model="newTestStartRecord.smokeTestPassRate"/>
        </div>
        <div class="form-group">
          <lable class="control-label">退回次数:</lable>
          <input type="text" class="form-control" placeholder="请输入退回次数" style="border-radius:4px;"
                 ng-model="newTestStartRecord.returnNum"/>
        </div>
        <div class="form-group">
          <lable class="control-label">配置信息:</lable>
          <input type="text" class="form-control" placeholder="请输入配置信息" style="border-radius:4px;"
                 ng-model="newTestStartRecord.configInfo"/>
        </div>
      </form>
    </div>
  </div>
  <div class="modal-footer" style="text-align:center;background-color:#EEEEEE;">
    <button class="btn btn-primary" ng-click="ok()">保存</button>
    <button class="btn btn-warning" ng-click="cancel()">取消</button>
  </div>
</script>

<script type="text/ng-template" id="confirm.html">
  <div class="m-c">
    <div class="modal-body" style="background-color:#eee;">
      <h4>{{info}}</h4>
    </div>
    <div class="modal-footer" style="text-align:center;background-color:#eee;height:50px;">
      <button class="btn btn-primary" style="margin-top:-10px;" ng-show="result" ng-click="ok()">确定</button>
      <button class="btn btn-warning" style="margin-top:-10px;" ng-show="!result" ng-click="ok()">确定</button>
    </div>
  </div>
</script>

<script type="text/ng-template" id="upload.html">

  <div class="modal-header" style="text-align:center;background-color:#EEEEEE;">
    <h3>上传文档</h3>
  </div>
  <div class="modal-body" style="background-color:#EEEEEE;">
    <div class="container" style="width:80%;">
      <form class="form-horizontal">
        <div class="modal-body-sm ">
          <div class="form-group line-div mt-24">
            <label class="line-lable f-l ml-30"><span>版本号</span></label>
            <div class="line-text-lg ml-10 f-l">
              {{item.version}}
            </div>
          </div>
          <div class="form-group line-div mt-16">
            <div class="ml-30 clearfix">
              <label class="line-lable f-l"><span class="f-right ">文件名</span></label>
              <input type="text" class="form-control f-l ml-10" style="width: 390px;" placeholder="  未选择任何文件">
              <input type="file" style="display: none;" id="upImportFileId" name="upImportFileId"
                     contentEditable="false" accept="textml"/>
              <span class="input-group-addon xn-cursor f-l"
                    style="width: 46px;height: 20px;font-size: 12px;white-space: nowrap;"
                    onclick="upImportFileId.click()">选择文件</span>
            </div>
          </div>
        </div>
      </form>
    </div>
  </div>
  <div class="modal-footer" style="text-align:center;background-color:#EEEEEE;">
    <button class="btn btn-primary" ng-click="upload()">上传</button>
    <button class="btn btn-warning" ng-click="cancel()">取消</button>
  </div>
</script>